#pragma once
#include<string>
#include"stdafx.h"
#include "InfoFile.h"
using namespace std;



class DoubleListNode {

public:
	msg m_product;
	DoubleListNode* m_pprior;
	DoubleListNode* m_pnext;

public:
	int Get_id();
	string Get_name();
	int Get_price();
	int Get_num();
	string Get_time();

private:
	friend class DoublyList;
	DoubleListNode();
	DoubleListNode(msg product);
	DoubleListNode(msg product, DoubleListNode* prior, DoubleListNode* next);
	~DoubleListNode();
};

int DoubleListNode::Get_id() {
	return this->m_product.id;
}

string DoubleListNode::Get_name() {
	return this->m_product.name;
}

int DoubleListNode::Get_price() {
	return this->m_product.price;
}

int DoubleListNode::Get_num() {
	return this->m_product.num;
}

string DoubleListNode::Get_time() {
	return this->m_product.time;
}

DoubleListNode::DoubleListNode() {
	m_pprior = NULL;
	m_pnext = NULL;
}
DoubleListNode::DoubleListNode(msg product, DoubleListNode* prior, DoubleListNode* next) {
	this->m_product = product;
	this->m_pprior = prior;
	this->m_pnext = next;
}
DoubleListNode::DoubleListNode(msg product) {
	this->m_product = product;
}
DoubleListNode::~DoubleListNode() {
	m_pprior = NULL;
	m_pnext = NULL;
}
